package com.hs.teachsystem.controller;

import com.hs.teachsystem.NoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import java.util.Map;


/**公告控制器
 * Created by MaiBenBen on 2017/7/14.
 */
@Controller
@RequestMapping("/notice")
public class NoticeController extends MyController {
    @Autowired
    private NoticeService noticeService;
    /**
     * 发布公告，或者作业
     * @return
     */
    @RequestMapping("/releaseNotice")
    public ModelAndView releaseNotice(){
        return new ModelAndView();
    }

    /**
     * 查询公告
     * @return
     */
    @RequestMapping("/queryNotice")
    public Object queryNotice(){
        Map<String,Object> result=null;
        return result;
    }

    /**
     * 查询作业完成的人
     * @return
     */
    @RequestMapping("/queryNoticeNumber")
    public Object queryNoticeNumber(){
        Map<String,Object> result=null;
        return result;
    }

    /**
     * 学生上交作业
     * @return
     */
    @RequestMapping("/handInHomework")
    public ModelAndView handInHomework(){
        return new ModelAndView();
    }

    /**
     * 学生自己查询是否完成作业
     * @return
     */
    @RequestMapping("/queryUserIfHandIn")
    public Object queryUserIfDHandIn(){
        Map<String,Object> result=null;
        return  result;
    }
}
